import 'package:flutter/services.dart';

class Tool {
  
  static MethodChannel get myplatform {
    return const MethodChannel("methodChannel");
  }

  static startSpeech(String text) async {
    // 调用原生
    await Tool.myplatform.invokeMethod('startRead', text);
  }

  static stopSpeech() async {
    // 调用原生
    await Tool.myplatform.invokeMethod('stopRead');
  }
}
